Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

362
Views
Gnosis Transaction Failing On Polygon w/ "Transaction Underpriced" error

I've been trying to get a transaction to execute on Polygon but it's been failing with the following error:

  reason: 'processing response error',
  code: 'SERVER_ERROR',
  body: '{"jsonrpc":"2.0","id":89,"error":{"code":-32000,"message":"transaction underpriced"}}',

This error only occurs on Polygon and it only occurs when using the Gnosis SDK. I've tested it using the Gnosis UI and it executes successfully. I've also tested it using the Gnosis SDK on rinkeby and that works as well.

Here is the code that fails:

const infuraProvider = new ethers.providers.JsonRpcProvider(RPC_PROVIDER);

const wallet = new ethers.Wallet(`0x${PRIVATE_KEY}`, infuraProvider);
const owner1 = wallet.connect(infuraProvider);

const ethAdapterOwner1 = new EthersAdapter({ ethers, signer: owner1 });

const safeSdkInstance = await Safe.create({
    ethAdapter: ethAdapterOwner1,
    safeAddress: GNOSIS_SAFE_ADDR,
});

const contract = new ethers.Contract(contractJson.address, contractJson.abi, owner1);

const tx = {
    to: contract.address,
    value: '0',
    data: contract.interface.encodeFunctionData('mint', ['[wallet address here]', '[token id here]']),
};
const safeTransaction = await safeSdkInstance.createTransaction(tx);

const executeTxResponse = await safeSdkInstance.executeTransaction(safeTransaction);

Other things I've tried:

  • Adding a gasPrice - making that gas price incredibly large
  • Adding a gasLimit
  • Changing RPC_PROVIDER from an infura provider to a public one
  • Calling a different function - I tried calling my contracts burn function and it came back with the exact same error

I did notice that even when providing a gasPrice the error I get back says that the transaction provided had a gasPrice of null. But when logging the safeTransaction object it shows a gasPrice is generated by the createTransaction function. So something must be going wrong in the executeTransaction function

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!